



class Address{
  // static const String homeHost = 'http://222.92.131.2:1000';
  // static const String homeHost = 'http://192.168.0.32:1000';

  // static const String homeHost = 'http://192.168.31.150:9099';
  // static const String homeHost = 'http://bbs.dtcloud360.com';
  // static const String homeHost = 'http://49.234.222.178:8082';
  // static const String homeHost = 'http://192.168.31.202:9099';
  // static const String homeHost = 'http://www.amoserp.com';

  static const String ASSETS_IMG = 'images/';
  /// 正式服务
  static const String homeHost = 'http://49.234.222.178:8888';

  static const String host = '/api/v1';
  /// 登录
  static const String login = '$host/login';
  /// 一键登录
  static const String oauth = '$host/fast_login_mobile';
  /// send code
  static const String sendCode = '${host}/send_sms_mobile';
  /// app开屏页面
  static const String appOpens = '${host}/app.opens/read';
  /// 注册
  static const String signup = '${host}/signup';
  /// 获取用户基础信息
  static const String infoRead = '${host}/res.users/info/read';
  /// 获取个人档案
  static const String hrEmployeeReads = '${host}/hr.employee/read';

  /// 修改个人信息
  static const String infoWrite = '${host}/res.users/info/write';
  /// 忘记密码
  static const String forgetPassword = '${host}/forget_password';
  /// 创建团队
  static const String teamCreate = '${host}/crm.team/create';
  ///我的团队
  static const String mineTeams = '${host}/crm.team/mine/read';
  ///所有团队
  static const String allTeams = '${host}/crm.team/all/read';
  ///加入团队
  static const String joinTeam = '${host}/crm.team/follows/create';
  /// 未阅日报
  static const String reportCreate = '${host}/crm.report/create';
  /// app全部
  static const String appGrid = '${host}/app.grid/all/page/read';
  /// 桌面应用
  static const String appGridIndex = '${host}/app.grid/index/read';
  /// 移除关注的应用
  static const String appGridRemove = '${host}/app.grid/follows/unlink';
  /// 添加桌面应用
  static const String appGridFocus = '${host}/app.grid/follows/create';
  ///报告列表
  static const String reportList = '${host}/crm.report/page/read';
  ///报告详情
  static const String reportInfo = '${host}/crm.report/read';
  ///获取附件
  static const String attachment ='${host}/ir.attachment/read';
  ///获取附件
  static const String attachmentUnlink ='${host}/ir.attachment/unlink';
  /// 评论
  static const String messageAdd = '${host}/mail.message/create';
  /// 点赞
  static const String resPraiseCreate = '${host}/res.praise/create';
  /// 获取岗位列表
  static const String hrJobRead = '${host}/base/hr.job/read';

  ///咨询反馈
  static const String helpdeskCreate = '${host}/helpdesk.ticket/create';

  /// 合同列表
  static const String hrContractPage = '${host}/hr.contract/page/read';
  /// 合同详情
  static const String hrContractRead = '${host}/hr.contract/read';
  /// 创建合同
  static const String hrContractWrite = '${host}/hr.contract/write';
  /// 请假列表
  static const String hrLeavePage = '${host}/hr.leave/page/read';
  /// 请假详情
  static const String hrLeaveRead = '${host}/hr.leave/read';
  /// 取消请假
  static const String hrLeaveCancelWrite = '${host}/hr.leave/cancel/write';
  /// 获取请假类型
  static const String hrLeaveType = '${host}/base/hr.leave.type/read';
  /// 创建请假
  static const String hrLeaveWrite = '${host}/hr.leave/write';
  ///所有车辆
  static const String oaCarsPage = '${host}/oa.cars/page/read';
  ///我的车辆申请列表
  static const String oaCarsCases = '${host}/oa.cars.cases/page/read';
  ///新建（修改）车辆使用单
  static const String oaCarsCasesWrite = '${host}/oa.cars.cases/write';
  ///车辆使用情况详情
  static const String oaCarsCasesRead = '${host}/oa.cars.cases/read';
  ///删除车辆使用
  static const String carsUnlink = '${host}/oa.cars.cases/unlink';

  ///我的奖励列表
  static const String myRewardList = '${host}/oa.reward.punishment/page/read';
  ///奖惩详情
  static const String rewardDetail = '${host}/oa.reward.punishment/read';
  ///我的办公用品申领列表
  static const String officeUser = '${host}/oa.office.use/page/read';
  ///办公用品申领情况详情
  static const String officeUserRead = '${host}/oa.office.use/read';
  /// 新建（修改）办公用品申领单
  static const String officeCreate ='${host}/oa.office.use/write';
  ///所有办公用品
  static const String allOffice = '${host}/oa.office.stock/page/read';
  ///删除办公用品申领
  static const String officeUnlink = '${host}/oa.office.use/unlink';


  ///日程列表
  static const String calendarList = '${host}/calendar.event/page';
  /// 日程列表详情
  static const String calendarRead = '${host}/calendar.event/read';
  ///项目列表
  static const String projectList = '${host}/project.project/page/read';
  ///任务列表
  static const String missionList = '${host}/project.task/page/read';
  /// 标记任务状态
  static const String projectTaskState = '${host}/project.task/state/write';
  /// 关闭打开项目
  static const String projectProjectState = '${host}/project.project/state/write';
  /// 工时单列表
  static const String timeSheetList = '${host}/account.analytic.line/page/read';
  /// 工时单详情
  static const String timeSheetDetail = '${host}/account.analytic.line/read';
  /// 新建（修改）工时单
  static const String createTimeSheet = '${host}/account.analytic.line/write';
  /// 删除工时单
  static const String unlinkTimeSheet = '${host}/account.analytic.line/unlink';
  /// 未阅项目
  static const String projectCreate = '${host}/project.project/write';
  /// 新建日程
  static const String calendarCreate = '${host}/calendar.event/write';
  /// 新建任务
  static const String missionCreate = '${host}/project.task/write';
  /// 删除任务
  static const String missionUnlink = '${host}/project.task/unlink';
  /// 删除项目
  static const String projectUnlink = '${host}/project.project/unlink';
  /// 删除日程
  static const String calendarUnlink = '${host}/calendar.event/unlink';
  /// 获取日程提醒类型
  static const String calendarAlarm = '${host}/base/calendar.alarm/read';
  /// 里程碑列表
  static const String milepostPage = '${host}/project.milestone/page/read';
  ///项目详情
  static const String projectInfo = '${host}/project.project/read/';
  ///日程详情
  static const String calendarInfo = '${host}/project.project/read/';
  ///任务详情
  static const String missionInfo = '${host}/project.task/read/';
  /// 获取员工
  static const String hrEmployee = '${host}/res.users/page/read';
  /// 获取部门树
  static const String hrDepartment = '${host}/hr.department/tree/read';
  /// 获取部门员工
  static const String hrEmployeePageRead = '${host}/res.users/page/read';

  /// 获取联系人-筛选
  static const String hrEmployeePage = '${host}/hr.employee/page/read';
  /// 获取联系人-详情
  static const String hrEmployeeRead = '${host}/hr.employee/read';


  /// 打卡
  static const String hrAttendance = '${host}/hr.attendance/check';
  /// 获取当前打卡
  static const String hrAttendanceCheckType = '${host}/hr.attendance/check_type';
  /// 考勤数据统计
  static const String hrAttendanceStaticRead= '${host}/hr.attendance/static/read';
  /// 搜索日期范围内有事件的日期
  static const String calendarEventDate= '${host}/calendar.event/date/read';
  /// 标记日程状态
  static const String calendarEventState= '${host}/calendar.event/state/write';
  /// 删除日程
  static const String calendarEventUnlink= '${host}/calendar.event/unlink';
  /// 获取当会议室
  static const String calendarRoom = '${host}/base/calendar.room/read';
  /// 获取会议列表
  static const String calendarPage = '${host}/calendar.event/page/read';
  /// 项目评论
  static const String commentPList = '$host/mail.message/comment/page/read/project.project';

  /// 文档列表
  static const String documentPage = '$host/documents.document/page/read';
  /// 我的文件夹
  static const String documentFolder = '${host}/documents.folder/read';
  /// 新增文件夹
  static const String documentFolderCreate = '$host/documents.folder/create';
  ///删除文件夹或文件
  static const String documentFolderUnlink = '$host/documents.document/unlink';
  /// 删除文件夹
  static const String reNameDocument = '$host/documents.document/name/write';
  /// 获取上传文件URL
  static const String upLoaderUrl = '$host/base/ir.attachment/uploader_url';
  ///获取分享文档url
  static const String documentShare = '$host/documents.document/share';
  /// 新闻评论
  static const String commentList = '$host/mail.message/comment/page/read/crm.report';

  /// 工单列表
  static const String productionList = '${host}/production/list';
  /// 工单详情
  static const String productionDetail = '${host}/production/detail/';
  /// 物料详情
  static const String bomDetail = '${host}/bom/detail/';
  /// 消息列表
  static const String messageList = '${host}/message/list/mrp.production/4';
  /// 新闻列表
  static const String newsList = '${host}/cms.news/page/read';
  /// 新闻详情
  static const String newsDetail = '${host}/cms.news/read';
  /// 新闻评论
  static const String newsComment = '${host}/cms.news.comment/create';
  /// 新闻收藏
  static const String newsCollect = '${host}/cms.news/follows/create';
  /// 新闻收藏列表
  static const String newsCollectList = '${host}/cms.news/follows/page/read';
  /// 视频列表
  static const String videoList = '${host}/cms.news/page/read';
  /// 点赞
  static const String newsPraise = '${host}/cms.news/praise/create';
  /// 公共函数；
  static const String pubilc_getattr = '$host/public_getattr/0';

}

